﻿using System;
using InfoJetSoft.Service.Util;

namespace InfoJetSoft.Service.Entity
{
	
	
	public class RuleAction
	{
		public int RuleActionType
		{
			get
			{
				return ruleActionType;
			}
			
			set
			{
				this.ruleActionType = value;
			}
			
		}
		
		public string AssignmentExpression
		{
			get
			{
				return assignmentExpression;
			}
			
			set
			{
				this.assignmentExpression = value;
			}
			
		}

		public string DialogBoxExpression {
			get {
				return dialogBoxExpression;
			}
			
			set {
				this.dialogBoxExpression = value;
			}
			
		}
		
		public string DialogBoxMessage {
			get {
				return dialogBoxMessage;
			}
			
			set {
				this.dialogBoxMessage = value;
			}
			
		}
		
		public string AssignmentTargetField
		{
			get
			{
				return assignmentTargetField;
			}
			
			set
			{
				this.assignmentTargetField = value;
			}
			
		}

		public string SwitchViewId {
			get {
				return switchViewId;
			}
			
			set {
				this.switchViewId = value;
			}
			
		}

		public string SubmitDataAdapterName 
		{
			get 
			{
				return submitDataAdapterName;
			}
			
			set 
			{
				this.submitDataAdapterName = value;
			}
			
		}

		public object SubmitDataAdapter 
		{
			get 
			{
				return submitDataAdapter;
			}
			
			set 
			{
				this.submitDataAdapter = value;
			}
			
		}

		public string QueryDataObjectName 
		{
			get 
			{
				return queryDataObjectName;
			}
			
			set 
			{
				this.queryDataObjectName = value;
			}
			
		}
		
		public bool PromptToSaveChanges 
		{
			get 
			{
				return promptToSaveChanges;
			}
			
			set 
			{
				this.promptToSaveChanges = value;
			}
			
		}

		public string SolutionURI
		{
			get
			{
				return this.solutionURI;
			}
			set
			{
				this.solutionURI = value;
			}
		}

        public string Adapter
        {
            get
            {
                return this.adapter;
            }
            set
            {
                this.adapter = value;
            }
        }

        public string AdapterProperty
        {
            get
            {
                return this.adapterProperty;
            }
            set
            {
                this.adapterProperty = value;
            }
        }

        public string Expression
        {
            get
            {
                return this.expression;
            }
            set
            {
                this.expression = value;
            }
        }

		public QueryXslt QueryXslt {
			get {
				return queryXslt;
			}
			
			set {
				this.queryXslt = value;
			}
			
		}
		
		public static int iExitRuleSet = 0;
		public static int iDialogBoxMessage = 1;
		public static int iDialogBoxExpression = 2;
		public static int iAssignment = 3;
		public static int iSwitchView = 4;
		public static int iQueryAction = 5;
		public static int iSubmitAction = 6;
		public static int iCloseDocAction = 7;
		//CID 0369 //2009.07.18 //Begin
		public static int iOpenNewDocumentAction = 8;
		//CID 0369 //2009.07.18 //End
        //CID 0604 //2010.06.10 //Begin
        public static int iChangeAdapterProperty = 9;
        //CID 0604 //2010.06.10 //End
		
		private int ruleActionType = 0;
		private string dialogBoxMessage = null;
		private string dialogBoxExpression = null;
		private string assignmentTargetField = null;
		private string assignmentExpression = null;
		private string switchViewId = null;
		private string submitDataAdapterName = null;
		private object submitDataAdapter = null;
		private string queryDataObjectName = null;
		private bool promptToSaveChanges = false;
		//CID 0369 //2009.07.18 //Begin
		private string solutionURI = null;
		//CID 0369 //2009.07.18 //End
        //CID 0604 //2010.06.10 //Begin
        private string adapter = null;
        private string adapterProperty = null;
        private string expression = null;
        //CID 0604 //2010.06.10 //End
		private QueryXslt queryXslt = null;
	}
}